package fhp.hlhj.giantfold.module

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.BaseModuleInterface
import fhp.hlhj.giantfold.javaBean.BaseBean
import fhp.hlhj.giantfold.network.UrlApis

/**
 * Created by Administrator on 2018\2\9 0009.
 */
class SendImgModule {
    interface OnSendResp:BaseModuleInterface<BaseBean>

    fun sendImg(params:HttpParams,listener:OnSendResp){
        UrlApis.sendImg(params)
                .doOnSubscribe {

                }
                .subscribe {
                    data->
                    listener.onResp(data)
                }
    }
}